package com.fan.service;

import com.fan.common.ServerResponse;
import com.fan.pojo.Category;
import com.fan.pojo.Product;
import com.fan.vo.ProductDetailVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IProductService {
    ServerResponse saveOrUpdate(Product product);
    ServerResponse setSaleStatus(Integer productId,Integer status);
    ServerResponse<ProductDetailVo> manageProductDetail(Integer productId);
    ServerResponse getProductList(int pageNum,int pageSize);
    ServerResponse seachProduct(String productName, Integer productId, int pageNum, int pageSize);
    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword, Integer categoryId, int pageNum, int pageSize, String orderBy);
}
